
#import <Foundation/Foundation.h>
@interface NSData (Base64) 

+ (NSData *)dataWithBase64EncodedString:(NSString *)string;
- (instancetype)initWithBase64EncodedString:(NSString *)string;

- (NSString *)base64Encoding;
- (NSString *)base64EncodingWithLineLength:(unsigned int) lineLength;

+ (NSString *)base64EncodedStringFrom:(NSData *)data;
//解密
+ (NSString *)textFromBase64String:(NSString *)base64;
//加密
+ (NSString *)base64StringFromText:(NSString *)text;

/**
 Returns a lowercase NSString for md5 hash.
 */
- (NSString *)md5String;

/**
 Returns an NSData for md5 hash.
 */
- (NSData *)md5Data;


@end

